<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加收货信息</title>
<link rel=stylesheet type=text/css href="css/input.css">
<style type="text/css">
	body{
		background:#dae4fe;
	}
</style>
<script type="text/javascript" src="js/jquery-3.1.0.min.js"></script>
<script>
	function chongzhi(){
		location.reload();
	}
	$(function(){
		$(".def").click(function(){
			var oid = $("#oid").val();
			var address = $("#address").val();
			var ostate = $("#ostate").val();
			var odate = $("#odate").val();
			var rname = $("#rname").val();
			$.post("addreceiving",{oid:oid,address:address,
				ostate:ostate,odate:odate,rname:rname},function(v){
					$("#label1").html(v);
				});
		});
	});
</script>
</head>
<body>
	<form>
		<table>
			<tr>
				<td>订单号：</td>
				<td>
					<input type="text" id="oid" value="${oid}" readonly="readonly">
				</td>
			</tr>
			<tr>
				<td>收货地址：</td>
				<td>
					<input type="text" id="address">
				</td>
			</tr>
			<tr>
				<td>商家发货状态：</td>
				<td>
					<input type="text" id="ostate" value="${list.get(0).getOstate}" readonly="readonly">
				</td>
			</tr>
			<tr>
				<td>商家发货时间：</td>
				<td>
					<input type="text" id="odate" value="${list.get(0).getOdate}" readonly="readonly">
				</td>
			</tr>
			<tr>
				<td>收货人姓名：</td>
				<td>
					<input type="text" id="rname">
				</td>
			</tr>
			<tr>
				<td>
				<a class="def">
					<input type="button" value="确   定">
				</a>
				</td>
				<td><input onclick="chongzhi()" type="button" value="重   置"></td>
			</tr>
		</table>
		<label id="label1"></label>
	</form>
</body>
</html>